PROCOM PM300 communication driver

 

PROCOM PM300 communication driver is the driver to communicate with Power Meter PM300 controller of ProCom System Co., Ltd. in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of PROCOM PM300 communication driver.

<Figure 1> Read setting example of PROCOM PM300 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(19200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively according to setting of controller.

 

PROCOM PM300 communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) STATION – 0 ~ 255 station number of PM300 controller.

2) Read command – command type. ( refer to <Table 1> ~ <Table 17> )

CHECK – read of communication status,

DATA – read of realtime data,

MINRST – read of Min/Max (Reset),

MINMAX – read of Min/Max data,

SETUP – read of General Setup,

TIME – read of current date/time,

CONTROL – read of Control Setup,

SNAPSHOT – read of Snapshot,

EVENT – read of Event data,

WAVE – read of Waveform data. 

3) Read start address – waveform channel number when WAVE read command.

4) Save Start Address for Communication Server – readed data saving start address of communication server.

5) Read Size – read size. ( refer to <Table 1> ~ <Table 17> )

EVENT : 1 ~ 19,

other read command : fixed to according to read command.

 

Read schedule example)

READ,     1,  DATA,     0,    0,   1,

 

READ,     2,  DATA,     0, 100,   1,

READ,     3,  DATA,     0, 200,   1,

 

Note) When using 'WAVE' read command, PM300 controller is shut down in some cases according to the controller.

In this case, please system reset and change the PM300 controller or don't use WAVE command.

 

<Table 1>, <Table 2> are data saving address and contents for CHECK, DATA read command.

Data saving address Contents Data type Remarks
0 version WORD default : 300 (0x12C)
1 S/W version current : 256 (0x100)
2 attribute code BYTE 0x01
3 system code 0 = Y, 1 = delta, 2 = single phase
4 ACK/NAK NAK = 0, 1 or other = ACK
<Table 1> Data saving address and contents for CHECK read command
Data saving address System code Data type Remarks
Y mode ( 0 ) delta ( 1 ) single phase 3 line ( 2 )
0 version (controller type ) WORD default : 300 (0x12C)
1 S/W version current : 256 (0x100)
2 attribute code BYTE 0x01
3 system code 0 = Y, 1 = delta, 2 = single phase
4 year - 1900 current date,time
5 month
6 day
7 hour
8 minute
9 second
10 Va Vab Va DWORD  
11 Vb Vbc Vb  
12 Vc Vca don't use  
13 average phase voltage average  voltage for each line average phase voltage  
14 Vab don't use Vab  
15 Vbc don't use  
16 Vca  
17 Ia Ia Ia  
18 Ib Ib Ib  
19 Ic Ic don't use  
20 average current  
21 Total KVA  
22 KW Phase A don't use KW Phase A  
23 KW Phase B KW Phase B  
24 KW Phase C don't use  
25 Total KW  
26 DC current input  
27 Total KVAR  
28 KW Demand  
29 power factor WORD  
30 frequency * 10  
31 KWH Total DWORD  
32 reserved  
33 KVAR Total  
34 Alarm Status refer to <Table 3>
35 reserved  
36 ~ 39 Relay 1 ~ 4 status BYTE  0 = Release,
1 = Operate
40 KVA Phase A don't use KVA Phase A DWORD  
41 KVA Phase B KVA Phase B  
42 KVA Phase C don't use  
43 KVAR Phase A KVAR Phase A  
44 KVAR Phase B KVAR Phase B  
45 KVAR Phase C don't use  
46 Neutral current WORD  
47 don't use BYTE  
48 Digital Input status refer to <Table 4>
49 ~ 65 Control 1 ~ 17 status refer to <Table 5>
66 don't use  
67 Min/Max Log Count WORD  
68 Event Log Count  
69 Snapshot Log Count  
70 ~ 73 SI ~ S4 Count  
74 KVARH DWORD  
<Table 2> Data saving address and contents for DATA read command

<Table 3> ~ <Table 5> are contents for each bit about Alarm Status, Digital Input status, Control 1 ~ 17 status.

 

 

Bit positon Contents
0 ~ 16 17 Set Point status
17 ~ 20 4 Relay status
21 ~ 24 4 Status Input status
25 ~ 31 don't use
<Table 3> Contents for each bit about Alarm Status
Bit positon Contents

Remarks

0 ~ 3

relay 1 ~ 4 status

0 = Normal, 1 = Active

4 ~ 7

don't use

 

<Table 4> Contents for each bit about Digital Input status
Bit positon Contents Remarks

0 ~ 4

same as Control Key Value

 

5

Control status

0 = Normal, 1 = Active

6 ~ 7

relay number

0 ~ 3

<Table 5> Contents for each bit about Control 1 ~ 17 status

<Table 6> is data saving address and contents for MINRST( MIN/MAX Reset ), MINMAX( MIN/MAX ) read command.

 

 

Data saving address

Contents

Data type

Remarks

0

version (controller type )

WORD

default : 300 (0x12C)

1

S/W version

current : 256 (0x100)

2

attribute code

BYTE

0x01

3

system code

0 = Y, 1 = delta, 2 = single phase

4

Min/Max Log Counter

WORD

 

5 ~ 8

maximum occurrence time for 1st element

DWORD

 

maximum value for 1st element

 

minimum occurrence time for 1st element

 

minimum value for 1st element

 

9 ~ 12

 ¡° for 2nd element

 

13 ~ 16

 ¡° for 3rd element

 

17 ~ 20

 ¡° for 4th element

 

21 ~ 24

 ¡° for 5th element

 

25 ~ 28

 ¡° for 6th element

 

29 ~ 32

 ¡° for 7th element

 

33 ~ 36

 ¡° for 8th element

 

37 ~ 40

 ¡° for 9th element

 

41 ~ 44

 ¡° for 10th element

 

45 ~ 48

 ¡° for 11th element

 

49 ~ 52

 ¡° for 12th element

 

53 ~ 56

 ¡° for 13th element

 

57 ~ 60

 ¡° for 14th element 

 

<Table 6> Data saving address and contents for MINRST( MIN/MAX Reset ), MINMAX( MIN/MAX ) read command

<Table 7> is data saving address and contents for SETUP read command.

 

 

Data saving address

Contents

Data type

Remarks

0

version (controller type ) WORD

default : 300 (0x12C)

1

S/W version

current : 256 (0x100)

2

attribute code BYTE

0x01

3

system code

0 = Y, 1 = delta, 2 = single phase

4 reserved WORD  
5 rated primary voltage DWORD  
6 reserved WORD  
7 rated primary current  
8 Baud Rate  
9 reserved  
10 current password  
11 reserved  
12 Snapshot period(second) DWORD  
13 demand period WORD  
14 reserved  
15 reserved BYTE  
16 DC output element  
17 standard frequency WORD  
18 rated DC output DWORD  
19 rated DC input  
20 Status Input Set WORD  
21 reserved  
22 rated primary neutral current  
23 R1 function selection 0 = Set point,
1 = KWH,
2 = KVARH Pulse
24 R1 rated  
25 R2 function selection  
26 R2 rated  
27 R3 function selection  
28 R3 rated  
29 R4 function selection  
30 R4 rated  
<Table 7> Data saving address and contents for SETUP read command

<Table 8> is contents for each bit about Status Input Set.

Bit positon Contents Remarks

0 ~ 3

S1 Input Set

0 = Status,

1 = Counter

4 ~ 7

S2 Input Set

8 ~ 11

S3 Input Set

12 ~ 15

S4 Input Set

<Table 8> Contents for each bit about Status Input Set

<Table 9>, <Table 10> are data saving address and contents for TIME, CONTROL read command.

Data saving address

Contents

Data type

Remarks

0

version (controller type )

WORD

default : 300 (0x12C)

1

S/W version

current : 256 (0x100)

2

attribute code

BYTE

0x01

3

system code

0 = Y, 1 = delta, 2 = single phase

4

year - 1900

WORD

 

5

month

DWORD

 

6

day

WORD

 

7

hour

 

8

minute

 

9

second

 

<Table 9> Data saving address and contents for TIME read command
Data saving address Contents Data type

Remarks

0 version (controller type ) WORD

default : 300 (0x12C)

1 S/W version

current : 256 (0x100)

2 attribute code BYTE

0x01

3 system code

0 = Y, 1 = delta, 2 = single phase

4 reserved

 

5 reserved

 

6 ~ 11 turn off setting value DWORD

Control Setup

of  Record 1

operation setting value
turn off delay value WORD
operation delay value
relay number BYTE
control element, refer to <Table 11>
12 ~ 17 same as Record 1

Control Setup

of  Record 2 

18 ~ 101 same as Record 1

Control Setup

of  Record 3 ~ 16 

102 ~ 107 same as Record 1

Control Setup

of  Record 17 

<Table 10> Data saving address and contents for CONTROL read command

<Table 11> is meaning for each data value about control element.

Meaning for each data value

( decimal )

0 = None

1 = Over Voltage

2 = Under Voltage

3 = Voltage Unbalance

4 = Over Current

5 = Current Unbalance

6 = Over kVA

7 = Over kW forward

8 = Over kW reverse

9 = Over kVAR forward

10 = Over kVAR reverse

11 = Over Demand

12 = Over Frequency

13 = Under Frequency

14 = Under Power Factor Lag

15 = Under Power Factor Lead

16 = Over Neutral Current

17 = S1 Normal

18 = S1 Active

19 = S2 Normal

20 = S2 Active

21 = S3 Normal

22 = S3 Active

23 = S4 Normal

24 = S4 Active

25 ~ 28 = S1 ~ S4 Counter Over

29 = DC current input Over

30 = DC current input Under

<Table 11> Meaning for each data value about control element

<Table 12>, <Table 13> are data saving address and contents for SNAPSHOT, EVENT read command.

 

 

Data saving address Contents Data type Remarks
0 version (controller type ) WORD default : 300 (0x12C)
1 S/W version current : 256 (0x100)
2 attribute code BYTE 0x01
3 system code 0 = Y, 1 = delta, 2 = single phase
4 number of Last Recorded Snapshot WORD  
5 number of Last Snapshot in Packet  
6 number of Snapshot in Packet 0 ~ 4
7 occurrence time of Snapshot DWORD Snapshot number 1
8 average voltage
9 3 phase active power
10 3 phase reactive power
11 demand
12 DC current input
13 PF WORD
14 frequency
15 3 phase amount of active power DWORD
16 3 phase amount of reactive power
17 KW Reverse
18 Alarm Status
19 reserved
20 ~ 32 same as Snapshot 1
( variable: may be not exist depending on the status)
Snapshot number 2
33 ~ 45 Snapshot number 3
46 ~ 58 Snapshot number 41
<Table 12> Data saving address and contents for SNAPSHOT read command
Data saving address Contents Data type Remarks
0 version (controller type ) WORD default : 300 (0x12C)
1 S/W version current : 256 (0x100)
2 attribute code BYTE 0x01
3 system code 0 = Y, 1 = delta, 2 = single phase
4 number of Last Recorded Event WORD  
5 number of Last Event in Packet  
6 number of Event in Packet 0 ~ 4
7 occurrence time of Event,
refer to <Table 14>
DWORD  Event number 1
8 occurrence year of Event BYTE
9 Event flag,
refer to <Table 15>
10 Event code,
refer to <Table 16>
WORD
11 Event value DWORD
12 ~ 16 same as Event 1
( variable: may be not exist depending on the status)
 Event number 2
17 ~ 96  Event number 3 ~ 18
97 ~ 101  Event number 19
<Table 13> Data saving address and contents for EVENT read command

<Table 14> ~ <Table 16> are contents for each bit about occurrence time( Compressed Time ) of Event, Event flag, Event code.

Bit positon Contents Remarks

0 ~ 5

second

6 Bit (0 ~ 63)

6 ~ 11

minute

12 ~ 16

hour

5 Bit (0 ~ 31)

17 ~ 21

day

22 ~ 25

month

4 Bit (0 ~ 15)

26 ~ 31

year - 1990 (Year : 1990 ~ 2053)

6 Bit (0 ~ 63)

<Table 14> Contents for each bit about occurrence time( Compressed Time ) of Event
Bit positon Contents Remarks

0 ~ 3

reserved

 

4

status value for relay 1

0 = Released,

1 = Operated

5

status value for relay 2

6

status value for relay 3

7

status value for relay 4

<Table 15> Contents for each bit about Event flag
Bit positon Contents Remarks
0 ~ 13

event code

00 = Reserved,

01 ~ 03 = Over Voltage Phase A ~ C,

04 ~ 06 = Under Voltage Phase A ~ C,

07 ~ 09 = Voltage Unbalance Phase A ~ C,

10 ~ 12 = Over Current Phase A ~ C,

13 ~ 15 = Current Unbalance Phase A ~ C,

16 = Over Total kVA,

17 = Over Total kW Forward,

18 = Over Total kW Reverse,

19 = Over Total kVAR Forward,

20 = Over Total kVAR Reverse,

21 = Over kW Demand,

22 = Over Frequency,

23 = Under Frequency,

24 = Under PF Lag,

25 = Under PF Lead,

26 = Over Neutral Current,

27 = S1 Input Normal,

28 = S1 Input Active,

29 = S2 Input Normal,

30 = S2 Input Active,

31 = S3 Input Normal,

32 = S3 Input Active,

33 = S4 Input Normal,

34 = S4 Input Active,

35 ~ 38 = S1 ~ S4 Over Count,

39 = Over DC Àü·ù ÀÔ·Â,

40 = Unver DC Àü·ù ÀÔ·Â,

41-256 = Reserved,

257 = Time Set,

258 = Local Setup Changed,

259 = Remote Setup Changed,

260 = Power Up/Reset,

261 = Reserved,

262 = Clear Min/Max,

263 = Cleared kWH, kVarH, kVAH,

264 = Relay #1 Operate,

265 = Relay #1 Release,

266 = Relay #2 Operate,

267 = Relay #2 Release,

268 = Relay #3 Operate,

269 = Relay #3 Release,

270 = Relay #4 Operate,

271 = Relay #4 Release.

14 ~ 15

reserved

 

<Table 16> Contents for each bit about Event code

<Table 17> is data saving address and contents for WAVE read command.

Data saving address Contents Data type Remarks
0 version (controller type ) WORD default : 300 (0x12C)
1 S/W version current : 256 (0x100)
2 attribute code BYTE 0x01
3 system code 0 = Y, 1 = delta, 2 = single phase
4 Channel number WORD  
5 reserved  
6 reserved  
7 value for Sample 1 12 bit 0 ~ 4095,
total : 128 Sample
8 value for Sample 2
9 value for Sample 3
10 value for Sample 4
11 ~ 132 ~
133 value for Sample 127
134 value for Sample 128
<Table 17> Data saving address and contents for WAVE read command

If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part. 

<Figure 2> Example of PROCOM PM300 communication driver¡¯s Option dialog box

You can set read schedule by using , , button and listbox of <Figure 2>. 

<Figure 3> Example of PROCOM PM300 communication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Write settings

You can control PROCOM PM300 controller by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             station number of PM300 controller.

3)  ADDRESS           writing address when SETUP, CONTROL, RELAY write command.

SETUP write command : 0001 ~ 0027,  refer to <Table 18>,

CONTROL write command : 0001 ~ 0006, refer to <Table 19>,

RELAY write command : 0001 ~ 0004 relay number. 

4) Extra1                    write command = TIME, SETUP, CONTROL, CLEAR, RELAY.

TIME : time syncronization with computer,

SETUP : General Setup,

CONTROL : Control Setup,

CLEAR : Clear( reset ) KWH, KvarH, KVAR,

RELAY : Relay control. 

5) Extra2                    1 ~ 17 record number when CONTROL write command.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0000, Extra1: CLEAR,  Extra2 :

The setting parameter shown above is Clear( reset ) KWH, KvarH, KVAR setting example for 1 station number PROCOM PM300 controller.

 

Write example 2)

PORT:0,  station:2, ADDRESS:0002, Extra1: RELAY,  Extra2 :

The setting parameter shown above is Relay control( On/Off )setting example for 2( 2nd ) relay, 2 station number PROCOM PM300 controller.

 

Write example 3)

PORT:0,  station:3, ADDRESS:0000, Extra1: TIME,  Extra2 :

The setting parameter shown above is time syncronization setting example with computer for 3 station number PROCOM PM300 controller.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             station number of PM300 controller.

3)  ADDRESS           writing address when SETUP, CONTROL, RELAY write command.

SETUP write command : 0001 ~ 0027,  refer to <Table 18>,

CONTROL write command : 0001 ~ 0006, refer to <Table 19>,

RELAY write command : 0001 ~ 0004 relay number. 

4) Extra1                    write command = TIME, SETUP, CONTROL, CLEAR, RELAY.

TIME : time syncronization with computer,

SETUP : General Setup,

CONTROL : Control Setup,

CLEAR : Clear( reset ) KWH, KvarH, KVAR,

RELAY : Relay control. 

5) Extra2                    1 ~ 17 record number when CONTROL write command.

 

<Table 18>, <Table 19> are setting parameters for SETUP, CONTROL write command.

 Address Contents Data type Remarks
0001 controoller station Address setting WORD old address invalid after Address setting
0002 rated primary voltage setting DWORD  
0003 reserved WORD  
0004 rated primary current setting  
0005 Baud Rate setting baud rate setting completed after reset
0006 reserved  
0007  password setting  
0008 reserved  
0009 setting of Snapshot period setting DWORD  
0010 setting of demand perlod WORD  
0011 reserved  
0012 reserved BYTE  
0013 DC output element setting  
0014 standard frequency setting WORD  
0015 DC output rated setting DWORD  
0016 DC input rated setting  
0017 Status Input Set setting WORD  
0018 reserved  
0019 rated primary neutral current setting  
0020 R1 function selection setting 0 = Set point,
1 = KWH,
2 = KVARH Pulse
0021 R1 rated setting  
0022 R2 function selection setting  
0023 R2 rated setting  
0024 R3 function selection setting  
0025 R3 rated setting  
0026 R4 function selection setting  
0027 R4 rated setting  
<Table 18> Setting parameters for SETUP write command
Address Extra2 Contents Data type Remarks
0001 ~ 0006 1 turn off setting value DWORD Control Setup write for
 Record number 1
operation setting value
turn off delay value WORD
operation delay value
relay control BYTE
control element,
refer to <Table 11>
same as above 2 ~ 17 same as Record number 1 Control Setup write for
Record number 2 ~ 17
<Table 19> Setting parameters for CONTROL write command

Write example 1)

PORT:0,  station:1, ADDRESS:0001, Extra1: SETUP,  Extra2 :

The setting parameter shown above is controller station address setting example for 1 station number PROCOM PM300 controller. ( refer to <Table 18> )

 

Write example 2)

PORT:0,  station:2, ADDRESS:0002, Extra1: SETUP,  Extra2 :

The setting parameter shown above is rated primary voltage setting example for 2 station number PROCOM PM300 controller. ( refer to <Table 18> )

 

Write example 3)

PORT:0,  station:3, ADDRESS:0001, Extra1: CONTROL,  Extra2 : 1

The setting parameter shown above is turn off setting value control example for record number 1, 3 station number PROCOM PM300 controller. ( refer to <Table 19> )

 

Write example 4)

PORT:0,  station:3, ADDRESS:0004, Extra1: CONTROL,  Extra2 : 15

The setting parameter shown above is operation delay value setting example for record number 15, 3 station number PROCOM PM300 controller. ( refer to <Table 19> )

 

3. Connection of communication cable and main power

Connection of communication cable and main power are as follows:

 

Connection of RS-232C communication cable

Please connect RS-232C communication cable to Rx, Tx, SG connector such as <Figure 5>.

Also set to 232( RS-232C ) the COMM Select switch.

 

 RS-232C 9pin connector of computer                     PROCOM PM300

  3 Pin  -----------------------------------------------------  Rx connector

 2 Pin  -----------------------------------------------------  Tx connector

 5 Pin  -----------------------------------------------------  SG connector

 

<Figure 4> is appearance of PROCOM PM300 controller.

<Figure 5> is connection example of communication cable to PROCOM PM300 controller.

<Figure 4> Appearance of PROCOM PM300 controller

 

<Figure 5> Connection example of communication cable to PROCOM PM300 controller

 

 Connection of RS-485 communication cable

Please connect RS-485 communication cable to +, - connector such as <Figure 5> and set to 485( RS-485 ) the COMM Select switch.

 

 

Connection of main power

Please connect 110 ~ 240V AC 50/60 HZ main power to N(-), L(+) connector such as <Figure 6>.

<Figure 6> Connection example of main power to PROCOM PM300 controller

 

4. Setting of station address and baud rate

Setting of station address and baud rate are as follows:

 

Setting of station address(ID number)

1. Please enter to 'Setup' menu by pressing 'SELECTCT', '-' at the same time.

2. Press 'CURSOR' button at Setup menu. Then will go to 'Password ' input menu.

3. Input Password by using '+',' -', 'CURSOR', 'SELECTCT' button. Then will go to 'ID No.' input menu.

4. Please input station number ( ID number ) by using setting button. After setting station number, press 'SELECT' button.

 

Setting of baud rate

1. After setting station number, press 'SELECT' button. Then will go to 'baud rate' setting menu.

2. Please select 'baud rate' by using '+', '-' button. After setting station number, press 'SELECT' button.

Available baud rate are as follows:

1 = 9600 bps,

2 = 19200 bps,

3 = 38400 bps.